/**
 * Created by Administrator on 2015/5/25.
 */

angular.module('starter')
    .controller('CityController',function ($scope,ResourceVisitService,VoteService){

        var voteDefineType= "city";
        var voteDefineList = $scope.citysVote;
        var userName = $scope.userModel.userName;
        VoteService.init(voteDefineType,voteDefineList,userName);
        $scope.choice=function(){
            VoteService.choice(voteDefineList)   ;
        }
    });